package sskj.regulatory.presentation.adapter

import android.content.Context
import android.view.ViewGroup
import com.jude.easyrecyclerview.adapter.BaseViewHolder
import com.jude.easyrecyclerview.adapter.RecyclerArrayAdapter
import kotlinx.android.synthetic.main.item_signed.view.*
import kotlinx.android.synthetic.main.item_sitevideo.view.*
import kotlinx.android.synthetic.main.item_xmb_eng.view.*
import sskj.regulatory.R
import sskj.regulatory.data.response.eng.EngResponse

class ProjectDeptRecyclerArrayAdapter(context: Context?) : RecyclerArrayAdapter<EngResponse.Data>(context) {

    override fun OnCreateViewHolder(parent: ViewGroup, viewType: Int): BaseViewHolder<*> {
        return ItemViewHolder(parent)
    }

    internal inner class ItemViewHolder(parent: ViewGroup) : BaseViewHolder<EngResponse.Data>(parent, R.layout.item_xmb_eng) {


        override fun setData(data: EngResponse.Data) {

            itemView.mEngTv.text = data.name
            itemView.mBjRqTv.text = data.bjrq
//            itemView.mEngVideoIv.setImageResource(data.picpriviewurl!!)
            itemView.mEngXxjdTv.text = data.xxjd
        }
    }

}